package com.example.day17;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @author Lenovo
 */
public class CopyTxtDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("E:\\itcast\\窗里窗外.txt");
        FileOutputStream fos = new FileOutputStream("myByteStream\\窗里窗 外.txt");
        int by;
        while ((by=fis.read())!=-1) {
            fos.write(by);
        }
        fos.close();
        fis.close();

    }
}
